package com.project;

class Employee {
	private int empno;//职工号
	private String ename;//姓名
	private String esex;//性别
	private Date dbirthday;//生日
	private String edept;//工作部门
	private Date dwork;//参加工作时间
		
	public int getEmpno(){
		return empno;
	}
	public void setEmpno(int empno){
		this.empno=empno;
	}

	public String getEname(){
		return ename;
	}
	public void setEname(String ename){
		this.ename=ename;
	}

	public String getEsex(){
		return esex;
	}
	public void setEsex(String esex) {
		this.esex = esex;
	}

	public Date getDbirthday(){
		return dbirthday;
	}
	public void setDbirthday(Date dbirthday){
		this.dbirthday=dbirthday;
	}
	
	public String getEdept() {
		return edept;
	}
	public void setEdept(String edept) {
		this.edept = edept;
	}
	
	public Date getDwork(){
		return dwork;
	}
	public void setDwork(Date dwork){
		this.dwork=dwork;
	}
	

	public Employee(int empno,String ename,String esex,Date dbirthday,String edept,Date dwork){
		this.empno=empno;
		this.ename=ename;
		this.esex=esex;
		this.dbirthday=dbirthday;
		this.edept=edept;
		this.dwork=dwork;
	}
	
	public String toString(){
		return "职工号:"+empno		+"\t姓名:"+ename		+"\t性别:"+esex	+"\t生日:"+dbirthday.toString()	
			+"\t工作部门:"+edept	+"\t参加工作时间:"+dwork.toString();
	}
}


